package protocol;

/**
 * 返回值的基本结构
 * 
 * @author yangzhi@djcars.cn
 * @createDate 2012-06-28 14:29
 */
public class JsonResponse {
    public String id;
    public State state;
    public Object data;

    public static class State {
        
        public Integer code;
        public String msg;
        
        public State(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public String toString(){
            return String.format("state[%d, '%s']", code, msg);
        }
    }
}